/**
 * @desc 角色列表搜索组件
 */
import React from "react";
import PropTypes from "prop-types";
import {Button} from "antd";
import TheButton from "../../../../components/TheButton";

class SearchForm extends React.Component {
    render() {
        const {add} = this.props;
        return (
            <TheButton haspermi={['set:role:add']} auth={'role:add'} className='fr' onClick={add}>
                新增角色
            </TheButton>
        );
    }
}

SearchForm.propTypes = {
    onFinish: PropTypes.func.isRequired,
};
export default SearchForm;
